#import <Foundation/Foundation.h>

#import "RedWolf.h"
#import "GrayWolf.h"
#import "WhiteWolf.h"
#import "Rabbit.h"

int main(int argc, const char * argv[]) {
    @autoreleasepool {
//        id<CatchSheepDelegate> obj = [WhiteWolf new];
//        NSLog(@"%@", obj);
        
        RedWolf *redWolf = [RedWolf new];
        [redWolf eatSheep];
        
        NSLog(@"------");
        
        GrayWolf *grayWolf = [GrayWolf new];
        redWolf.husband = grayWolf;
//        WhiteWolf *whiteWolf = [WhiteWolf new];
//        redWolf.husband = whiteWolf;
        
        [redWolf eatSheep];
        
        [redWolf release];
        [grayWolf release];
//        [whiteWolf release];
    }
    return 0;
}
